<?php

namespace Sifast\ProjectBundle\Admin;

use Sonata\AdminBundle\Admin\Admin;
use Sonata\AdminBundle\Datagrid\ListMapper;
use Sonata\AdminBundle\Datagrid\DatagridMapper;
use Sonata\AdminBundle\Form\FormMapper;

class PrimesAnnuellesAdmin extends Admin
{
 
    protected function configureFormFields(FormMapper $formMapper)
    {
        $formMapper
        ->with('L1')
            ->add('primeFinAnnee','text',array(
                'label'=> 'Prime fin année:',))
            ->add('primeObjectifs','text',array(
                'label'=> 'Prime objectifs:',))
                ->end()
                ->with('L2')
            ->add('primeAnnuelle3','text',array(
                'label'=> 'Prime annuelle 3:',))
            ->add('primeAnnuelle4','text',array(
                'label'=> 'Prime annuelle 4:',))
                ->end()
                ->with('L3')
            ->add('primeAnnuelle5','text',array(
                'label'=> 'Prime annuelle 5:',))
            ->end();
            
    }

    protected function configureDatagridFilters(DatagridMapper $datagridMapper)
    {
        $datagridMapper
           
            ->add('primeFinAnnee')
            ->add('primeObjectifs')
            ->add('primeAnnuelle3')
            ->add('primeAnnuelle4') 
            ->add('primeAnnuelle5');
            
    }

    protected function configureListFields(ListMapper $listMapper)
    {
        $listMapper
            ->addIdentifier('primeFinAnnee')
            ->add('primeObjectifs')
            ->add('primeAnnuelle3')
            ->add('primeAnnuelle4') 
            ->add('primeAnnuelle5');
            
            }
}